/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gt.entity;

import com.thinkgem.jeesite.modules.sys.entity.Area;
import javax.validation.constraints.NotNull;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 工作月报信息Entity
 * @author zad
 * @version 2018-03-26
 */
public class GtWorkReport extends DataEntity<GtWorkReport> {
	
	private static final long serialVersionUID = 1L;
	private Area area;		// 地区
	private String name;	// 月报名称
	private Date month;		// 月份
	private String workDtl;		// 工作情况
	private String task;		// 困难任务
	private String mobile;		// 联系电话
	
	public GtWorkReport() {
		super();
	}

	public GtWorkReport(String id){
		super(id);
	}

	@NotNull(message="地区不能为空")
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getMonth() {
		return month;
	}

	public void setMonth(Date month) {
		this.month = month;
	}
	
	@Length(min=0, max=1024, message="工作情况长度必须介于 0 和 1024 之间")
	public String getWorkDtl() {
		return workDtl;
	}

	public void setWorkDtl(String workDtl) {
		this.workDtl = workDtl;
	}
	
	@Length(min=0, max=1024, message="困难任务长度必须介于 0 和 1024 之间")
	public String getTask() {
		return task;
	}

	public void setTask(String task) {
		this.task = task;
	}
	
	@Length(min=0, max=13, message="联系电话长度必须介于 0 和 13 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
}